import request from '@/utils/request'

// 实时在线
export function getOnlineRealtime(query) {
  return request({
    url: '/statis/online/realtime',
    method: 'get',
    params: query
  })
}

// 在线统计
export function getOnlineList(query) {
  return request({
    url: '/statis/online/list',
    method: 'get',
    params: query
  })
}

// 历史在线
export function getOnlineHistory(query) {
  return request({
    url: '/statis/online/history',
    method: 'get',
    params: query
  })
}

// 注册统计
export function getRegister(query) {
  return request({
    url: '/statis/register',
    method: 'get',
    params: query
  })
}

// 活跃统计
export function getDau(query) {
  return request({
    url: '/statis/dau',
    method: 'get',
    params: query
  })
}

// 注册留存
export function getKeepRegister(query) {
  return request({
    url: '/statis/keep/register',
    method: 'get',
    params: query
  })
}

// 充值留存
export function getKeepRecharge(query) {
  return request({
    url: '/statis/keep/recharge',
    method: 'get',
    params: query
  })
}

// 注册充值留存
export function getKeepRegRecharge(query) {
  return request({
    url: '/statis/keep/regrecharge',
    method: 'get',
    params: query
  })
}

// 充值统计
export function getRechargeStatis(query) {
  return request({
    url: '/statis/recharge/statis',
    method: 'get',
    params: query
  })
}

// 充值订单
export function getRechargeOrder(query) {
  return request({
    url: '/statis/recharge/order',
    method: 'get',
    params: query
  })
}

// 充值档位组配置
export function getConfigRechargeGroupList() {
  return request({
    url: '/gm/config/recharge/group/list',
    method: 'get'
  })
}

// 充值排名
export function getRechargeRanking(query) {
  return request({
    url: '/statis/recharge/ranking',
    method: 'get',
    params: query
  })
}

// 充值分布
export function getRechargeDistribution(query) {
  return request({
    url: '/statis/recharge/distribution',
    method: 'get',
    params: query
  })
}

// 充值区间
export function getRechargeInterval(query) {
  return request({
    url: '/statis/recharge/interval',
    method: 'get',
    params: query
  })
}

// 首充分析
export function getRechargeFirst(query) {
  return request({
    url: '/statis/recharge/first',
    method: 'get',
    params: query
  })
}

// 充值区间
export function getLtv(query) {
  return request({
    url: '/statis/ltv',
    method: 'get',
    params: query
  })
}

// 发行报表
export function getPublisherReport(query) {
  return request({
    url: '/statis/report/publisher',
    method: 'get',
    params: query
  })
}

// 注册报表
export function getRegisterReport(query) {
  return request({
    url: '/statis/report/register',
    method: 'get',
    params: query
  })
}

// 钻石产销数据
export function getDiamondProductionList(query) {
  return request({
    url: '/statis/dimond/production/list',
    method: 'get',
    params: query
  })
}

// 钻石产销排行数据
export function getDiamondProductionRank(query) {
  return request({
    url: '/statis/dimond/production/rank',
    method: 'get',
    params: query
  })
}

// 钻石消耗数据
export function getDiamondConsumeList(query) {
  return request({
    url: '/statis/dimond/consume/list',
    method: 'get',
    params: query
  })
}

// 钻石消耗排行数据
export function getDiamondConsumeRank(query) {
  return request({
    url: '/statis/dimond/consume/rank',
    method: 'get',
    params: query
  })
}

// 道具统计列表
export function getItemStaticList(query) {
  return request({
    url: '/statis/Item/list',
    method: 'get',
    params: query
  })
}

// 道具统计列表
export function getItemStaticRank(query) {
  return request({
    url: '/statis/Item/rank',
    method: 'get',
    params: query
  })
}

// 道具角色列表
export function getItemStaticActorRank(query) {
  return request({
    url: '/statis/item/actorRank',
    method: 'get',
    params: query
  })
}

// 分时数据
export function getHour(query) {
  return request({
    url: '/statis/hour',
    method: 'get',
    params: query
  })
}

// 商店数据
export function getShopList(query) {
  return request({
    url: '/statis/shop/list',
    method: 'get',
    params: query
  })
}

// 商店配置数据
export function getShopConfigList(query) {
  return request({
    url: '/statis/shop/config/list',
    method: 'get',
    params: query
  })
}

// 商店数据
export function getShopData() {
  return request({
    url: '/statis/shop/data',
    method: 'get'
  })
}

// 在线分布数据
export function getOnlineDurationList(query) {
  return request({
    url: '/statis/online/duration/list',
    method: 'get',
    params: query
  })
}

// 在线分布数据
export function getOnlineDurationAvgList(query) {
  return request({
    url: '/statis/online/duration/avg/list',
    method: 'get',
    params: query
  })
}

// 等级分布数据
export function getDistributionLevelList(query) {
  return request({
    url: '/statis/distribution/level/list',
    method: 'get',
    params: query
  })
}

// VIP等级分布数据
export function getDistributionVipList(query) {
  return request({
    url: '/statis/distribution/vip/list',
    method: 'get',
    params: query
  })
}

// 实时等级分布数据
export function getDistributionRealtimeLevelList(query) {
  return request({
    url: '/statis/distribution/realtime/level/list',
    method: 'get',
    params: query
  })
}

// 字段分布数据
export function getDistributionList(query) {
  return request({
    url: '/statis/distribution/list',
    method: 'get',
    params: query
  })
}

// 实时VIP等级分布数据
export function getDistributionRealtimeVipList(query) {
  return request({
    url: '/statis/distribution/realtime/vip/list',
    method: 'get',
    params: query
  })
}

// 实时字段分布数据
export function getDistributionRealtimeList(query) {
  return request({
    url: '/statis/distribution/realtime/list',
    method: 'get',
    params: query
  })
}

// 渠道报表数据
export function getChannelReport(query) {
  return request({
    url: '/statis/report/channel',
    method: 'get',
    params: query
  })
}

// 数据周报数据
export function getWeekReport(query) {
  return request({
    url: '/statis/report/week',
    method: 'get',
    params: query
  })
}

// 数据月报数据
export function getMonthReport(query) {
  return request({
    url: '/statis/report/month',
    method: 'get',
    params: query
  })
}

// 分服报表数据
export function getServerReport(query) {
  return request({
    url: '/statis/report/server',
    method: 'get',
    params: query
  })
}

// 流失统计
export function getLossList(query) {
  return request({
    url: '/statis/loss',
    method: 'get',
    params: query
  })
}

// 首次离线统计
export function getofflineList(query) {
  return request({
    url: '/statis/loss/offline',
    method: 'get',
    params: query
  })
}

// 玩法统计
export function getActivityLossList(query) {
  return request({
    url: '/statis/loss/activity',
    method: 'get',
    params: query
  })
}

// 抽卡统计
export function getCardList(query) {
  return request({
    url: '/statis/card/base',
    method: 'get',
    params: query
  })
}

// 抽卡英雄统计
export function getCardHeroList(query) {
  return request({
    url: '/statis/card/hero',
    method: 'get',
    params: query
  })
}

// 英雄统计
export function getActorHeroList(query) {
  return request({
    url: '/statis/hero/list',
    method: 'get',
    params: query
  })
}

// 抽卡统计
export function getHeroGattleList(query) {
  return request({
    url: '/statis/hero/gattlelog',
    method: 'get',
    params: query
  })
}

// 统计道具id配置
export function getCfgStItemList(query) {
  return request({
    url: '/statis/item/cfgList',
    method: 'get',
    params: query
  })
}

// 统计道具id配置
export function handleCfgItemConfig(data) {
  return request({
    url: '/statis/item/cfgList/edit',
    method: 'post',
    data
  })
}
